
package com.chengyu.eyc.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import com.chengyu.eyc.utils.EycGenId;

import tk.mybatis.mapper.annotation.KeySql;

@Table(name = "EYC_CLIENT")
public class EycClient extends BaseModel {

    private static final long serialVersionUID = 1L;

    @Id
    @KeySql(genId = EycGenId.class)
    @Column(name = "CLIENT_ID")
    private String clientId;

    /**
     * 昵称
     */
    @Column(name = "NICKNAME")
    private String nickname;

    /**
     * 车牌
     */
    @Column(name = "NAME")
    private String name;

    /**
     * 头像
     */
    @Column(name = "HEAD_PORTRAIT")
    private String headPortrait;

    /**
     * 介绍人
     */
    @Column(name = "REFERRER")
    private String referrer;

    @Column(name = "REMARK")
    private String remark;

    /**
     * @return CLIENT_ID
     */
    public String getClientId() {
        return clientId;
    }

    /**
     * 获取头像
     *
     * @return HEAD_PORTRAIT - 头像
     */
    public String getHeadPortrait() {
        return headPortrait;
    }

    /**
     * 获取车牌
     *
     * @return NAME - 车牌
     */
    public String getName() {
        return name;
    }

    /**
     * 获取昵称
     *
     * @return NICKNAME - 昵称
     */
    public String getNickname() {
        return nickname;
    }

    /**
     * 获取介绍人
     *
     * @return REFERRER - 介绍人
     */
    public String getReferrer() {
        return referrer;
    }

    /**
     * @return REMARK
     */
    public String getRemark() {
        return remark;
    }

    /**
     * @param clientId
     */
    public void setClientId(String clientId) {
        this.clientId = clientId == null ? null : clientId.trim();
    }

    /**
     * 设置头像
     *
     * @param headPortrait 头像
     */
    public void setHeadPortrait(String headPortrait) {
        this.headPortrait = headPortrait == null ? null : headPortrait.trim();
    }

    /**
     * 设置车牌
     *
     * @param name 车牌
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * 设置昵称
     *
     * @param nickname 昵称
     */
    public void setNickname(String nickname) {
        this.nickname = nickname == null ? null : nickname.trim();
    }

    /**
     * 设置介绍人
     *
     * @param referrer 介绍人
     */
    public void setReferrer(String referrer) {
        this.referrer = referrer == null ? null : referrer.trim();
    }

    /**
     * @param remark
     */
    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", clientId=").append(clientId);
        sb.append(", nickname=").append(nickname);
        sb.append(", name=").append(name);
        sb.append(", headPortrait=").append(headPortrait);
        sb.append(", referrer=").append(referrer);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

}